//package com.itheima.common.aspect;
//
//import lombok.extern.slf4j.Slf4j;
//import org.aspectj.lang.JoinPoint;
//import org.aspectj.lang.ProceedingJoinPoint;
//import org.aspectj.lang.annotation.Around;
//import org.aspectj.lang.annotation.Before;
//import org.aspectj.lang.annotation.Pointcut;
//
//import java.util.Arrays;
//
//
//@Slf4j
////@Component
////@Aspect
//public class MyAspect2 {
//
//@Pointcut("@annotation(com.itheima.common.annotation.Syslog)")
//private void pt(){
//
//}
//
//@Before("pt()")
//public void befor(JoinPoint joinPoint){
//    log.info("before.........");
//}
//
//@Around("pt()")
//    public Object around(ProceedingJoinPoint joinPoint){
//    String className = joinPoint.getTarget().getClass().getName();
//    log.info("获取目标类名：{}",className);
//
//    String methodName = joinPoint.getSignature().getName();
//    log.info("目标方法名：{}",methodName);
//
//    Object[] args = joinPoint.getArgs();
//    log.info("获取方法执行时需要的参数:{}", Arrays.toString(args));
//
//
//return null;
//}
//
//
//
//
//
//}
